package com.bean;

import com.bean.anno.validator.NoChineseAndSemicolon;
import lombok.Data;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;
import javax.validation.constraints.NotBlank;
import java.time.LocalDate;
import java.time.LocalDateTime;

@Data
@Entity
@Table(name = "website_userinfo")
public class WebsiteUserInfo {

    @Id
    private String id;
    @NoChineseAndSemicolon(message = "用户名不能包含中文或冒号")
    @NotBlank(message = "用户名不能为空")
    private String username;
    @NoChineseAndSemicolon(message = "密码不能包含中文或冒号")
    @NotBlank(message = "密码不能为空")
    private String password;
    private LocalDateTime createtime;
    private LocalDateTime updatetime;
    private String type;


}
